﻿using System;
using UnityEngine.Networking;

public class EnergyIncreaser : Consumable
{
    public float energyIncrement = 10f;

    public override void OnDeserialize(NetworkReader reader, bool initialState)
    {
        base.OnDeserialize(reader, initialState);
    }

    public override bool OnSerialize(NetworkWriter writer, bool forceAll)
    {
        bool flag;
        bool flag2 = base.OnSerialize(writer, forceAll);
        return (flag | flag2);
    }

    protected override void OnUse(Character user)
    {
        base.OnUse(user);
        user.energy += this.energyIncrement;
    }

    private void UNetVersion()
    {
    }
}

